package com.bed.lovewithpatientbed.pojo;

import java.io.Serializable;

/**
 * malfunction_state
 * @author 
 */
public class MalfunctionState implements Serializable {
    private Integer malfunctionStateId;

    private String malfunctionStateName;

    private Integer softdel;

    private static final long serialVersionUID = 1L;

    public Integer getMalfunctionStateId() {
        return malfunctionStateId;
    }

    public void setMalfunctionStateId(Integer malfunctionStateId) {
        this.malfunctionStateId = malfunctionStateId;
    }

    public String getMalfunctionStateName() {
        return malfunctionStateName;
    }

    public void setMalfunctionStateName(String malfunctionStateName) {
        this.malfunctionStateName = malfunctionStateName;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MalfunctionState other = (MalfunctionState) that;
        return (this.getMalfunctionStateId() == null ? other.getMalfunctionStateId() == null : this.getMalfunctionStateId().equals(other.getMalfunctionStateId()))
            && (this.getMalfunctionStateName() == null ? other.getMalfunctionStateName() == null : this.getMalfunctionStateName().equals(other.getMalfunctionStateName()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMalfunctionStateId() == null) ? 0 : getMalfunctionStateId().hashCode());
        result = prime * result + ((getMalfunctionStateName() == null) ? 0 : getMalfunctionStateName().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", malfunctionStateId=").append(malfunctionStateId);
        sb.append(", malfunctionStateName=").append(malfunctionStateName);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}